﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true"
    CodeBehind="SuaLopHoc.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy.SuaLopHoc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Sửa Lớp Học</title>
    <style type="text/css">
        .style1
        {
            width: 120px;
            padding-left: 10px;
            height: 30px;
        }
        .style2
        {
            width: auto;
            height: 30px;
        }
        #qllh
        {
            background: url("../Image/menu_focus.png") no-repeat scroll transparent;
            color: #FFFFFF;
            left: -6px;
            padding: 19px 18px 19px 25px;
        }
    </style>
    <link rel="stylesheet" href="../Styles/jquery-ui.css" />
    <script src="../Scripts/jquery-1.8.3.js"></script>
    <script src="../Scripts/jquery-ui.js"></script>
    <script>
        $(function () {
            $("#NgayKhaiGiang").datepicker({
                changeMonth: true,
                changeYear: true,
                minDate: +1,
                maxDate: +30
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="padding-left: 40px">
        Trang Chỉnh Sửa Lớp Học</h1>
    <table style="margin: 10px 20px 10px 20px; width: 95%" cellpadding="10px">
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="SuaLopHoc" runat="server"
                    ForeColor="Red" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server" GroupingText="Thông tin chính">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Mã Lớp:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtMaLop" runat="server" Width="200px" Enabled="False" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Nhập mã lớp"
                                    ControlToValidate="txtMaLop" ValidationGroup="SuaLopHoc" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Giáo Viên Phụ Trách:
                            </td>
                            <td class="style2">
                                <asp:DropDownList runat="server" ID="ddlGiaoVien" Width="205px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Phòng Học:
                            </td>
                            <td class="style2">
                                <asp:DropDownList runat="server" ID="ddlPhongHoc" Width="205px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Học Phí:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtHocPhi" runat="server" Width="200px" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Nhập học phí lớp"
                                    ControlToValidate="txtHocPhi" ValidationGroup="SuaLopHoc" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtHocPhi"
                                    ValidationGroup="SuaLopHoc" ErrorMessage="Học phí nhập không chính xác" Type="Double"
                                    Text="*" ForeColor="Red" Operator="DataTypeCheck"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Sỉ Số:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtSiSo" runat="server" Width="200px" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập sỉ số lớp"
                                    ControlToValidate="txtSiSo" ValidationGroup="SuaLopHoc" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Nhập sỉ số không chính xác"
                                    ControlToValidate="txtSiSo" ValidationGroup="SuaLopHoc" Text="*" ForeColor="Red"
                                    MaximumValue="150" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Ngày Khai Giảng:
                            </td>
                            <td class="style2">
                                <input type="text" id="NgayKhaiGiang" name="NgayKhaiGiang" style="width: 200px" value="<%=this.ThoiGian%>" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
            <td>
                <asp:Panel ID="Panel2" runat="server" GroupingText="Thông tin phụ thêm">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Lịch Học:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtLichHoc" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Mô Tả:
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtMota" runat="server" Width="200px" TextMode="MultiLine" ValidationGroup="ThemLopHoc" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                                <asp:Button ID="btnCapNhatLopHoc" Text="Cập Nhật" runat="server" Width="100px" ValidationGroup="SuaLopHoc"
                                    CssClass="btnCapNhat" OnClick="btnCapNhatLopHoc_Click" />
                                &nbsp;<asp:Button ID="btnQuayLai" Text="Hủy" runat="server" Width="100px" OnClick="btnQuayLai_Click"
                                    CssClass="btnHuy" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
